extends VBoxContainer


const DramaSequenceFormItem = preload("res://tool/page/drama/modal/DramaSequenceFormItem.tscn")

onready var item_box = $ScrollContainer/VBoxContainer
 

func _ready():
	pass 



func _on_add_button_up():
	var ui = DramaSequenceFormItem.instance()
	item_box.add_child(ui)


func set_data(data):
	if data:
		for item in data:
			var ui = DramaSequenceFormItem.instance()
			item_box.add_child(ui)
			ui.set_data(item)


func get_data():
	var list = []
	for child in item_box.get_children():
		list.append(child.get_data())
	
	return list
